package com.cn.dream_order_server.vo;


import lombok.Data;

@Data
public class GoodCommoditySkuAndSpuVO {

    private String commodityId;//商品id

    private Long spuId;//spu_id

    private String title;//商品标题

    private String images;//商品的图片，多个图片以‘,’分割

    private Long price;//销售价格，单位为分

    private String ownSpec;//sku的特有规格参数键值对，json格式，反序列化时请使用linkedHashMap，保证有序

    private Boolean enable;//是否有效，0无效，1有效

    private String commoditySubtitle;//子标题


    public GoodCommoditySkuAndSpuVO(String commodityId, Long spuId, String title, String images, Long price, String ownSpec, Boolean enable, String commoditySubtitle) {
        this.commodityId = commodityId;
        this.spuId = spuId;
        this.title = title;
        this.images = images;
        this.price = price;
        this.ownSpec = ownSpec;
        this.enable = enable;
        this.commoditySubtitle = commoditySubtitle;
    }

    public GoodCommoditySkuAndSpuVO() {
    }
}
